package com.snowy.hidden.biz.mapper;

import com.snowy.framework.common.base.mapper.BaseMapper;
import com.snowy.hidden.biz.domain.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 登陆人信息(User)表数据库访问层
 *
 * @author makejava
 * @since 2022-09-12 09:23:28
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT * from tb_user where open_id=#{openId} and `status`=0")
    User findByOpenId(@Param("openId") String openId);
}
